package com.jiazhong.cloud.governance.consumer.ribbon.service.impl;

import com.jiazhong.cloud.governance.consumer.ribbon.service.ConsumerRibbonService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class ConsumerRibbonServiceImpl implements ConsumerRibbonService {

    @Resource
    private RestTemplate restTemplate;

    @Override
    public String hello() {
        String uri = "http://cloud-service-governance-provider/provider";
        return restTemplate.getForObject(uri, String.class);

    }
}
